﻿@model CNav.Model.ComplaintTypeModel

@{
    ViewBag.Title = "Complaint type - Edit";
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div id="complaintTypeAccordion">
        <ol>
            <li>
                 @Html.HiddenFor(model => model.Code)
                @Html.LabelFor(m => m.Code)
                @Html.DisplayFor(model => model.Code)
                <br />
                @Html.ValidationMessageFor(model => model.Code)
            </li>

            <li>
                @Html.LabelFor(m => m.Description)
                @Html.TextAreaFor(model => model.Description)
                <br />
                @Html.ValidationMessageFor(model => model.Description)
            </li>
            <li>
                <label>&nbsp;</label> 
                 @Html.HiddenFor(m => m.ID)
                <input type="submit" value="Save" />
                <input type="button" value="Cancel" id="cancelButton" />
            </li>

        </ol>
    </div>
}

<script type="text/javascript">

    $(document).ready(function () {

        var cc = new CaseCentre();
        cc.BindCancel('#cancelButton', '/ComplaintType/');

    });
</script>
